using System;
using System.Web.UI;
using SouthernLand.Common;
using SouthernLand.Common.Untilities;

namespace SouthernLand.Controls
{
    public partial class SupportOnline : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            GetImageSupport();
        }

        protected string GetImageSupport()
        {
            int intHour = ConvertUtility.ToInt32(DateTime.Now.ToString("HH"));
            if (intHour >= 8 && intHour <= 16)
                return "<img border=\"0\" src=" + Globals.ImagesUrl() + "online.gif />";
            else
                return "<img border=\"0\" src=" + Globals.ImagesUrl() + "offline.gif />";
        }

        protected string GetImageSupportSkype()
        {
            return "<img border=\"0\" src=" + Globals.ImagesUrl() + "martinnorling77.png />";
        }
    }
}